<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
<%@ page import="Singleton.Application" %>
<%@ page import="Singleton.Local" %>
<%@ page import="utils.Functions" %>
<%@ page import="java.util.Calendar" %>
<%@ page import="java.util.GregorianCalendar" %>
<%@ page import="java.text.SimpleDateFormat"%>

<%
	SimpleDateFormat dateFormat = new SimpleDateFormat(Local.get("shortDateFormat")); 
	GregorianCalendar[] day = new GregorianCalendar[1];
	
	day[0] = new GregorianCalendar();
	if (!Functions.isNullOrEmpty(request.getParameter("date"))) {
		day[0].setTime(dateFormat.parse(request.getParameter("date")));
	} else {
		day[0].setTime(new java.util.Date());
	}
	
	GregorianCalendar nextDate = new GregorianCalendar();
	nextDate.setTime(day[0].getTime());
	nextDate.add(Calendar.DAY_OF_YEAR,1);
	GregorianCalendar prevDate = new GregorianCalendar();
	prevDate.setTime(day[0].getTime());
	prevDate.add(Calendar.DAY_OF_YEAR,-1);
	String nextLinkDate = dateFormat.format((java.util.Date)((GregorianCalendar)nextDate).getTime());
	String prevLinkDate = dateFormat.format((java.util.Date)((GregorianCalendar)prevDate).getTime());
	
%>  
<table width="100%" cellpadding="0" cellspacing="0" border="0" id="applicationcontainer">
<tr>
    <td id="leftNav" valign="top" width="190">
    
                <div class="modulecontainer sidebar">
            <div class="first">
                <span class="first"></span>
                <span class="last"></span>
            </div>
            <div style="text-align:center;">

                <!-- Mini calendrier -->
                        <div style="border-top:1px dotted #ccc;padding-top:5px;margin-top:5px;"><%= Singleton.Local.get("today_announcement") %>&nbsp;:<br> <a href=""><%= Singleton.Local.get("day_"+today.get(Calendar.DAY_OF_WEEK)) + " " + dateFormat.format(today.getTime()) %></a></div>
						</div>
            <div class="last">
                <span class="first"></span>
                <span class="last"></span>
            </div>
        </div>
        
    
                <form method="post" action="">

        <div class="modulecontainer sidebar quicksearch">
            <div class="first">
                <span class="first"></span>
                <span class="last"></span>
            </div>
            <div>
                <div class="hdr">
                    <strong><%= Singleton.Local.get("search_event") %></strong>
                </div>
                <div class="bdy">
                <input type="text" name="search_words" size="15"/>
                <button type="submit" name="SubmitSearch" value="Go">OK</button>
                </div>
                
            </div>
            <div class="last">
                <span class="first"></span>
                <span class="last"></span>
            </div>
        </div>
        </form>

    </td>
 


    <td valign="top" width="100%">
    <table cellpadding="0" cellspacing="0" width="100%" border="0">
    <tr>
    <td valign="top" colspan="3">
                    <div id="tabbackground">
                <div id="ymacalnav">
                    <span id="menu_day" class="bgf"><a href="javascript:loadFragmentInToElement('main.jsp?view=day','calendar')"><%= Singleton.Local.get("title_day") %></a></span>
                    <span id="menu_week" class="bge"><a href="javascript:loadFragmentInToElement('main.jsp?view=week','calendar')"><%= Singleton.Local.get("title_week") %></a></span>
                    <span id="menu_month" class="bge"><a href="javascript:loadFragmentInToElement('main.jsp?view=month','calendar')"><%= Singleton.Local.get("title_month") %></a></span>
                    <span id="menu_list" class="bge"><a href="javascript:loadFragmentInToElement('main.jsp?view=event','calendar')"><%= Singleton.Local.get("title_events") %></a></span>
                </div>
            </div>



    </td>
    </tr>
    <tr><td valign="top">
            
        <div id="daydataview">
            <table cellpadding="0" cellspacing="0" width="100%" border="0">
            <tr>
                <td valign="top" style="padding-right:8px;">

                        <div id="calhdr">
        <span>

                                        <a href="javascript:loadFragmentInToElement('main.jsp?view=day&date=<%= prevLinkDate %>','calendar')"><img src="<%= libPath %>/images/leftl1.gif" 

width="16" height="16" border="0"></a>
                                        <a href="javascript:loadFragmentInToElement('main.jsp?view=day&date=<%= nextLinkDate %>','calendar')"><img src="<%= libPath %>/images/rightl1.gif" 

width="16" height="16" border="0"></a>
                            <%= dateFormat.format(day[0].getTime()) %>
    </span>

 

        </div>



            <table id="daydata" cellpadding="0" cellspacing="0" border="0" width="100%">
         <colgroup>
    <col width="1%" />
</colgroup>

   <TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">1h00</A></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>                    <TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">2h00</A></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>                    <TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">3h00</A></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>                    <TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">4h00</A></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>                    <TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">5h00</A></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>                    <TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">6h00</A></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>                    <TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">7h00</A></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>                 <TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">8h00</A></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>
<TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">9h00</A></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>

<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>
<TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">10h00</A></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>
<TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">11h00</A></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>
<TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">12h00</A></TD>

<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>
<TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">13h00</A></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>
<TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">14h00</A></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>
<TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">15h00</A></TD>

<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>
<TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">16h00</A></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>
<TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">17h00</A></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>
<TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">18h00</A></TD>

<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>
<TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">19h00</A></TD>

<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR><TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">20h00</A></TD>

<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR><TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">21h00</A></TD>

<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR><TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">22h00</A></TD>

<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR><TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">23h00</A></TD>

<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR><TR><TD VALIGN=top ALIGN=right NOWRAP class=calnone> <A HREF="">00h00</A></TD>

<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
<TD WIDTH=50% class=calnone>&nbsp;<BR></TD>
</TR>
</table>

     <%@ include file="footer.jsp" %>
             </table>

        </div>    </td>
</tr>
</table>

    </td></tr>
    </table>
    </td>
</tr>
</table>